﻿Imports DTO
Imports DAO
Imports System.Data.SqlClient
Imports System.Data.Sql
Public Class LoaiPinBUS
    Public Shared Function ReadData() As List(Of LoaiPinDTO)
        Return LoaiPinDAO.ReadData()
    End Function
    Public Sub InsertData(ByVal tenloai As String, ByVal dongia As Integer)
        Dim insert As New LoaiPinDAO
        insert.InsertData(tenloai, dongia)
    End Sub
    Public Sub DeleteData(ByVal maloai As Integer)
        Dim delete As New LoaiPinDAO
        delete.DeleteData(maloai)
    End Sub
    Public Sub UpdateData(ByVal maloai As Integer, ByVal tenloai As String, ByVal dongia As Integer)
        Dim update As New LoaiPinDAO
        update.UpdateData(maloai, tenloai, dongia)
    End Sub
End Class

